fund_information.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. // ==========================================================================
  2. // Code generated by GoFrame CLI tool. DO NOT EDIT.
  3. // ==========================================================================
  4. package internal
  5. import (
  6. "context"
  7. "github.com/gogf/gf/v2/database/gdb"
  8. "github.com/gogf/gf/v2/frame/g"
  9. )
  10. // FundInformationDao is the data access object for table dc_fund_information.
  11. type FundInformationDao struct {
  12. table string // table is the underlying table name of the DAO.
  13. group string // group is the database configuration group name of current DAO.
  14. columns FundInformationColumns // columns contains all the column names of Table for convenient usage.
  15. }
  16. // FundInformationColumns defines and stores column names for table dc_fund_information.
  17. type FundInformationColumns struct {
  18. Id string // 主键ID
  19. PFundId string // 父级产品ID
  20. FundId string // 基金id,'HF'开头(后加36进制编码格式,不足8位长度左补零) 例:HF00000001
  21. FundName string // 基金中文全称
  22. FundShortName string // 基金中文简称
  23. FundStructure string // 基金形式:1-公司型,2-合伙型,3-契约型,-1-其他
  24. FundType string // 基金类型:1-信托计 划,2-有限合伙,3-券商资管,4-公募专户,5-单账户,6-证券投资基金,7-海外基金,8-期货资管,9-保险资管、10-创业投 资基金、11-股权投资基金、12-银行理财、13-类固收信托 、 14-私募资产配置基金 -1其他投资基金
  25. PublicFundType string // (即将弃用)公募基金类型:1-混合型、2-债券型、3-定开债券、4-联接基金、5-货币型、6-债券指数、7-保本型、8-理财型、9-QDII、10-股票指数、11-QDII-指数、12-股票型、13-固定收益、14-分级杠杆、15-ETF-场内、16-QDII-ETF、17-债券创新-场内、18-封闭式
  26. PubFundType string // 公募基金类型-基础参数,见fund_parameters:1-股票型、2-混合型、3-债券型、4-货币型、5-商品型、6-市场中性型、7-FOF、8-海外型
  27. PubSubFundType string // 公募基金子类型-基础参数,见fund_parameters:1-主动型、2-被动型、3-偏股型、4-平衡型、5-偏债型、6-普通债券型、7-可转债型、8-指数型、9-商品型、10-市场中性型、11-货币型、12-理财型
  28. FundCharacteristic string // 券商资管产品特点
  29. BaseCurrency string // 基础货币,1-人民币,2-港币,3-美元,4-份,-1-其他
  30. InceptionDate string // 成立日期
  31. Domicile string // 注册国家,1-中国大陆、2-香港、3-新加坡、4-开曼群岛、5-台湾、6-英属维尔京群岛BVI、-1-其他
  32. PrimaryBenchmarkId string // 指数id,以'IN'开头(后加36进制编码格式,不足8位长度左补零) 例:IN00000001
  33. SecondaryBenchmark string // 业绩基准指数及其说明
  34. LockupPeriod string // 封闭期,单位:月,-1:不确定,0:无封闭期
  35. LockupPeriodUnit string // 封闭期单位:1-天 2-月
  36. LockupPeriod2 string // 准封闭期
  37. LockPeriod string // 锁定期,单位:月,-1:不确定,0:无锁定期
  38. LockPeriodUnit string // 锁定期单位:1-天 2-月
  39. OpenDay string // 开放日
  40. RedemptionDay string // 赎回日
  41. Duration string // 产品存续期,单位:月。-1,不确定,0,无固定期限,999999永续
  42. InitialUnitValue string // 单位面值
  43. InvestmentScope string // 基金投资范围
  44. InvestmentObjective string // 投资目标
  45. FundPortfolio string // 基金资产配置比例
  46. InvestmentRestriction string // 投资限制
  47. FundInvestmentPhilosophy string // 投资理念
  48. FundStrategyDescription string // 投资策略
  49. InvestmentProcess string // 投资决策流程
  50. AdvisorId string // 投资顾问Id
  51. CustodianId string // 托管银行Id
  52. BrokerId string // 证券经纪人Id
  53. BrokerFutureId string // 期货经纪人id
  54. LiquidationAgencyId string // 外包机构Id
  55. TrustId string // 基金管理公司Id
  56. AdministratorId string // 行政管理人Id
  57. LegalCounselId string // 法律顾问Id
  58. AuditorId string // 审计机构
  59. GeneralServiceId string // 综合服务商id
  60. NavFrequency string // 净值披露频率
  61. PerformanceDisclosureMark string // 产品业绩披露标识:1-A,2-B,3-C
  62. PerformanceDisclosureType string // 产品业绩披露方式:1-净值,2-万份收益
  63. IsVisible string // 基金在前台是否可见
  64. ManagerType string // 管理类型:1-顾问管理 2-受托管理 3-自我管理
  65. BeginMemberCnt string // 成立时参与人户数
  66. RegisterPeriod string // 1-暂行办法实施前成立的基金,2-暂行办法实施后的基金
  67. ZjxLastInfoUpdateTime string // 中基协最后更新时间
  68. SpecialTips string // 基金协会特别提示
  69. AmacUrl string // 中基协页面地址
  70. RaiseType string // 募集方式:1-私募,2-公募
  71. RiskReturnDesc string // 风险收益特征
  72. Creatorid string // 创建者Id,默认第一次创建者名称,创建后不变更
  73. Createtime string // 创建时间,默认第一次创建的getdate()时间
  74. Updaterid string // 修改者Id;第一次创建时与Creator值相同,修改时与修改人值相同
  75. Updatetime string // 修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同
  76. Isvalid string // 记录的有效性;1-有效;0-无效;
  77. RegisterNumber string //
  78. Istiered string // 是否分级:1-分级,0-不分级;
  79. IstieredDesc string // 分级说明:0-空 1-优先份额 2-中间份额 3-劣后份额
  80. RegisterDate string // 备案日期
  81. IsRanking string // 是否参与排名,1-参与排名 0-不参与排名
  82. IsRating string // 是否参与评级,1-参与评级 0-不参与评级
  83. NavSource string // 基金净值来源地址
  84. ContractName string // 合同文件名称
  85. ContractPath string // 合同文件存储路径
  86. IsAuthorized string // 是否授权:1-是,0-否,-1-未确定(默认)
  87. IsInResearch string // 是否调查中:1-是,0-否
  88. VisibleCtrl string // 展示控制(业务场景),结合d_fund_visible_ctrl_set设置前台是否可见、净值是否可见、净值是否可见(B端)
  89. IsNavVisible string // 净值是否可见:1-是,0-否
  90. IsNavVisibleOrg string // 净值是否可见(B端):1-是,0-否
  91. IsFeeBefore string // 是否费前:1-是 0-否
  92. IsDeductReward string // 是否扣除业绩报酬:1-是 0-否("是否费前"为"否"才会有值,否则为空)
  93. ValuationInstitutionId string // 估值机构id
  94. TrustRegisterNumber string // 信托登记系统产品编码
  95. IsConsignment string // 是否代销产品: 1-是 , 0-否
  96. IsQdii string // 是否qdii:1-是,0-否
  97. IsExclusive string // 是否独家
  98. IsShowIndependent string // 是否独立展示(用于子基金)
  99. TrustApplyRegisterDate string // 申请登记日期(中信登)
  100. TrustPublicityDate string // 公示日期(中信登)
  101. TrustMainIndustry string // 主要投向行业
  102. TrustPropertyApplication string // 财产运用方式
  103. TrustFunction string // 信托功能:1-融资类 2-投资类 3-事务管理
  104. }
  105. // fundInformationColumns holds the columns for table dc_fund_information.
  106. var fundInformationColumns = FundInformationColumns{
  107. Id: "id",
  108. PFundId: "p_fund_id",
  109. FundId: "fund_id",
  110. FundName: "fund_name",
  111. FundShortName: "fund_short_name",
  112. FundStructure: "fund_structure",
  113. FundType: "fund_type",
  114. PublicFundType: "public_fund_type",
  115. PubFundType: "pub_fund_type",
  116. PubSubFundType: "pub_sub_fund_type",
  117. FundCharacteristic: "fund_characteristic",
  118. BaseCurrency: "base_currency",
  119. InceptionDate: "inception_date",
  120. Domicile: "domicile",
  121. PrimaryBenchmarkId: "primary_benchmark_id",
  122. SecondaryBenchmark: "secondary_benchmark",
  123. LockupPeriod: "lockup_period",
  124. LockupPeriodUnit: "lockup_period_unit",
  125. LockupPeriod2: "lockup_period2",
  126. LockPeriod: "lock_period",
  127. LockPeriodUnit: "lock_period_unit",
  128. OpenDay: "open_day",
  129. RedemptionDay: "redemption_day",
  130. Duration: "duration",
  131. InitialUnitValue: "initial_unit_value",
  132. InvestmentScope: "investment_scope",
  133. InvestmentObjective: "investment_objective",
  134. FundPortfolio: "fund_portfolio",
  135. InvestmentRestriction: "investment_restriction",
  136. FundInvestmentPhilosophy: "fund_investment_philosophy",
  137. FundStrategyDescription: "fund_strategy_description",
  138. InvestmentProcess: "investment_process",
  139. AdvisorId: "advisor_id",
  140. CustodianId: "custodian_id",
  141. BrokerId: "broker_id",
  142. BrokerFutureId: "broker_future_id",
  143. LiquidationAgencyId: "liquidation_agency_id",
  144. TrustId: "trust_id",
  145. AdministratorId: "administrator_id",
  146. LegalCounselId: "legal_counsel_id",
  147. AuditorId: "auditor_id",
  148. GeneralServiceId: "general_service_id",
  149. NavFrequency: "nav_frequency",
  150. PerformanceDisclosureMark: "performance_disclosure_mark",
  151. PerformanceDisclosureType: "performance_disclosure_type",
  152. IsVisible: "IsVisible",
  153. ManagerType: "manager_type",
  154. BeginMemberCnt: "begin_member_cnt",
  155. RegisterPeriod: "register_period",
  156. ZjxLastInfoUpdateTime: "zjx_last_info_update_time",
  157. SpecialTips: "special_tips",
  158. AmacUrl: "amac_url",
  159. RaiseType: "raise_type",
  160. RiskReturnDesc: "risk_return_desc",
  161. Creatorid: "creatorid",
  162. Createtime: "createtime",
  163. Updaterid: "updaterid",
  164. Updatetime: "updatetime",
  165. Isvalid: "isvalid",
  166. RegisterNumber: "register_number",
  167. Istiered: "istiered",
  168. IstieredDesc: "istiered_desc",
  169. RegisterDate: "register_date",
  170. IsRanking: "is_ranking",
  171. IsRating: "is_rating",
  172. NavSource: "nav_source",
  173. ContractName: "contract_name",
  174. ContractPath: "contract_path",
  175. IsAuthorized: "is_authorized",
  176. IsInResearch: "is_in_research",
  177. VisibleCtrl: "visible_ctrl",
  178. IsNavVisible: "is_nav_visible",
  179. IsNavVisibleOrg: "is_nav_visible_org",
  180. IsFeeBefore: "is_fee_before",
  181. IsDeductReward: "is_deduct_reward",
  182. ValuationInstitutionId: "valuation_institution_id",
  183. TrustRegisterNumber: "trust_register_number",
  184. IsConsignment: "is_consignment",
  185. IsQdii: "is_qdii",
  186. IsExclusive: "is_exclusive",
  187. IsShowIndependent: "is_show_independent",
  188. TrustApplyRegisterDate: "trust_apply_register_date",
  189. TrustPublicityDate: "trust_publicity_date",
  190. TrustMainIndustry: "trust_main_industry",
  191. TrustPropertyApplication: "trust_property_application",
  192. TrustFunction: "trust_function",
  193. }
  194. // NewFundInformationDao creates and returns a new DAO object for table data access.
  195. func NewFundInformationDao() *FundInformationDao {
  196. return &FundInformationDao{
  197. group: "default",
  198. table: "dc_fund_information",
  199. columns: fundInformationColumns,
  200. }
  201. }
  202. // DB retrieves and returns the underlying raw database management object of current DAO.
  203. func (dao *FundInformationDao) DB() gdb.DB {
  204. return g.DB(dao.group)
  205. }
  206. // Table returns the table name of current dao.
  207. func (dao *FundInformationDao) Table() string {
  208. return dao.table
  209. }
  210. // Columns returns all column names of current dao.
  211. func (dao *FundInformationDao) Columns() FundInformationColumns {
  212. return dao.columns
  213. }
  214. // Group returns the configuration group name of database of current dao.
  215. func (dao *FundInformationDao) Group() string {
  216. return dao.group
  217. }
  218. // Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
  219. func (dao *FundInformationDao) Ctx(ctx context.Context) *gdb.Model {
  220. return dao.DB().Model(dao.table).Safe().Ctx(ctx)
  221. }
  222. // Transaction wraps the transaction logic using function f.
  223. // It rollbacks the transaction and returns the error from function f if it returns non-nil error.
  224. // It commits the transaction and returns nil if function f returns nil.
  225. //
  226. // Note that, you should not Commit or Rollback the transaction in function f
  227. // as it is automatically handled by this function.
  228. func (dao *FundInformationDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
  229. return dao.Ctx(ctx).Transaction(ctx, f)
  230. }