BlogCustomerProfile

package
v5.2.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(args *ArgsDelete) (err error)

Delete 删除记录

Types

type ArgsCreate

type ArgsCreate struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//客户姓名
	Name string `db:"name" json:"name" check:"name"`
	//客户联系地址组件
	Address CoreSQLAddress.FieldsAddress `db:"address" json:"address" check:"address_data" empty:"true"`
	//留言信息
	Msg string `db:"msg" json:"msg" check:"des" min:"1" max:"1000" empty:"true"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params" check:"params" empty:"true"`
}

ArgsCreate 创建新记录参数

type ArgsDelete

type ArgsDelete struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
}

ArgsDelete 删除记录参数

type ArgsGetByID

type ArgsGetByID struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
}

ArgsGetByID 获取ID参数

type ArgsGetList

type ArgsGetList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//是否删除
	IsRemove bool `db:"is_remove" json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetList 获取列表参数

type FieldsProfile

type FieldsProfile struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//客户姓名
	Name string `db:"name" json:"name"`
	//客户联系地址组件
	Address CoreSQLAddress.FieldsAddress `db:"address" json:"address"`
	//留言信息
	Msg string `db:"msg" json:"msg"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

FieldsProfile 客户留存资料信息

func Create

func Create(args *ArgsCreate) (data FieldsProfile, err error)

Create 创建新记录

func GetByID

func GetByID(args *ArgsGetByID) (data FieldsProfile, err error)

GetByID 获取ID

func GetList

func GetList(args *ArgsGetList) (dataList []FieldsProfile, dataCount int64, err error)

GetList 获取列表

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL