package cn.ibizlab.codegen.model;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import net.ibizsys.model.service.IPSSubSysServiceAPI;
import net.ibizsys.model.service.IPSSubSysServiceAPIDE;

@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
public class SubEntityApiModel extends BaseModel {

    private SubServiceApiModel subServiceApi;

    public SubEntityApiModel(SubServiceApiModel subServiceApiModel, IPSSubSysServiceAPIDE iPSSubSysServiceAPIDE) {
        subServiceApi = subServiceApiModel;
        this.opt = iPSSubSysServiceAPIDE;
        this.setCodeName(iPSSubSysServiceAPIDE.getCodeName());
        this.setName(iPSSubSysServiceAPIDE.getName());
    }

}
